use adw::prelude::*;
use adw::subclass::prelude::*;
use glib::subclass::InitializingObject;
use gtk::{glib, CompositeTemplate, ToggleButton};



#[derive(CompositeTemplate, Default)]
#[template(resource = "/org/marcux/prionote/ui/prionote-note-window.ui")]
pub struct NoteWindow { }

#[glib::object_subclass]
impl ObjectSubclass for NoteWindow {
    const NAME: &'static str = "NoteWindow";
    type Type = super::NoteWindow;
    type ParentType = adw::Window;

    fn class_init(klass: &mut Self::Class) {
	klass.bind_template();
    }

    fn instance_init(obj: &InitializingObject<Self>) {
	obj.init_template();
    }
}


impl ObjectImpl for NoteWindow {
    fn constructed(&self) {
	self.parent_constructed();
	//self.obj().setup_actions();
    }
}


impl WidgetImpl for NoteWindow { }

impl WindowImpl for NoteWindow { }

impl AdwWindowImpl for NoteWindow { }
